<?php

namespace adminApi\models\db;

use common\components\wtools\tools\ArrayHelper;
use yii\behaviors\BlameableBehavior;

class Categories extends \common\models\db\Categories
{
    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors = ArrayHelper::merge($behaviors, [
            'blameable' => [
                'class' => BlameableBehavior::class,
                'createdByAttribute' => 'created_by_adminer',
                'updatedByAttribute' => 'updated_by_adminer',
            ],
        ]);
        return $behaviors;
    }
}
